package cn.edu.sjtu.se.dslab.component.aadl;
/**
 * aadl线程所用的重点类（一个对象表示线程的某个端口和该对象相连接）
 * @author sunke
 *
 */
public class PortPair {
	/**
	 * 端口信息
	 */
	public AADLFeature feature;
	/**
	 * 端口所属的node信息
	 */
	public AADLNode node;
	public AADLFeature getFeature() {
		return feature;
	}
	public void setFeature(AADLFeature feature) {
		this.feature = feature;
	}
	public AADLNode getNode() {
		return node;
	}
	public void setNode(AADLNode node) {
		this.node = node;
	}
	public PortPair(AADLFeature feature, AADLNode node) {
		super();
		this.feature = feature;
		this.node = node;
	}
	@Override
	public String toString() {
		if (feature!= null) {
			return "PortPair [feature=" + feature.getName() + ", node=" + node.getName() + "]";
		}else {
			return "PortPair [feature=null, node=" + node.getName() + "]";
		}
		
	}
	
	
}
